package pc.nick.http;

import java.io.Serializable;

/**
 * 简单的Cookie
 */
public class Cookie implements Serializable {

    private static final long serialVersionUID = -3977915365961941126L;

    /**
     * cookie的名称
     */
    private String name;

    /**
     * cookie的值
     */
    private String value;

    // cookie还有path、domain、maxAge等属性，在此简单使用


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "Cookie [name=" + name + ", value=" + value + "]";
    }

    public Cookie(String name, String value) {
        this.name = name;
        this.value = value;
    }
}
